@osovitny/anatoly 3.16.87 → 3.16.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/ui/components/base/components/component.mjs +11 -2
- package/esm2022/lib/ui/components/base/components/edit.component.mjs +5 -2
- package/esm2022/lib/ui/components/card/card-body.component.mjs +8 -9
- package/esm2022/lib/ui/components/card/card-footer.component.mjs +8 -9
- package/esm2022/lib/ui/components/card/card-header.component.mjs +8 -12
- package/esm2022/lib/ui/components/card/card.component.mjs +8 -9
- package/esm2022/lib/ui/forms/components/address/address.component.mjs +4 -12
- package/esm2022/lib/ui/forms/components/company/company.component.mjs +4 -9
- package/esm2022/lib/ui/forms/components/dropdownlists/timezone/timezone.dropdownlist.mjs +6 -17
- package/esm2022/lib/ui/forms/components/urlslug/urlslug.component.mjs +8 -13
- package/esm2022/lib/ui/validation/item-validation-summary.component.mjs +4 -7
- package/fesm2022/osovitny-anatoly.mjs +49 -84
- package/fesm2022/osovitny-anatoly.mjs.map +1 -1
- package/lib/ui/components/base/components/component.d.ts +4 -1
- package/lib/ui/components/base/components/edit.component.d.ts +2 -1
- package/lib/ui/components/card/card-body.component.d.ts +3 -3
- package/lib/ui/components/card/card-footer.component.d.ts +3 -3
- package/lib/ui/components/card/card-header.component.d.ts +3 -4
- package/lib/ui/components/card/card.component.d.ts +3 -3
- package/lib/ui/forms/components/address/address.component.d.ts +1 -4
- package/lib/ui/forms/components/company/company.component.d.ts +1 -3
- package/lib/ui/forms/components/dropdownlists/timezone/timezone.dropdownlist.d.ts +1 -5
- package/lib/ui/forms/components/urlslug/urlslug.component.d.ts +2 -4
- package/lib/ui/validation/item-validation-summary.component.d.ts +1 -2
- package/package.json +1 -1
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
</file>
|
|
15
15
|
*/
|
|
16
16
|
//Node
|
|
17
|
-
import { Component
|
|
17
|
+
import { Component } from '@angular/core';
|
|
18
18
|
//App
|
|
19
19
|
import { EditComponentBase } from '../../../../components/base/components/edit.component';
|
|
20
20
|
import * as i0 from "@angular/core";
|
|
@@ -42,15 +42,12 @@ export class TimezoneDropdownlist extends EditComponentBase {
|
|
|
42
42
|
api;
|
|
43
43
|
appContext;
|
|
44
44
|
timezoneListItems;
|
|
45
|
-
//Inputs
|
|
46
|
-
title = 'Timezone';
|
|
47
|
-
isTitleVisible = true;
|
|
48
|
-
controlName = 'timezone';
|
|
49
|
-
controlTitle;
|
|
50
45
|
constructor(api, appContext) {
|
|
51
46
|
super();
|
|
52
47
|
this.api = api;
|
|
53
48
|
this.appContext = appContext;
|
|
49
|
+
this.title = 'Timezone';
|
|
50
|
+
this.controlName = 'timezone';
|
|
54
51
|
}
|
|
55
52
|
ngOnInit() {
|
|
56
53
|
this.setValues();
|
|
@@ -72,7 +69,7 @@ export class TimezoneDropdownlist extends EditComponentBase {
|
|
|
72
69
|
}
|
|
73
70
|
}
|
|
74
71
|
static ɵfac = function TimezoneDropdownlist_Factory(t) { return new (t || TimezoneDropdownlist)(i0.ɵɵdirectiveInject(i1.CoreApiService), i0.ɵɵdirectiveInject(i2.AppContextService)); };
|
|
75
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TimezoneDropdownlist, selectors: [["anatoly-forms-timezone-dropdownlist"]],
|
|
72
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TimezoneDropdownlist, selectors: [["anatoly-forms-timezone-dropdownlist"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 4, vars: 4, consts: [[1, "form-group", 3, "formGroup"], ["class", "col-form-label", 4, "ngIf"], [1, "form-control", 3, "formControlName"], [3, "value", 4, "ngFor", "ngForOf"], [1, "col-form-label"], [3, "value"]], template: function TimezoneDropdownlist_Template(rf, ctx) { if (rf & 1) {
|
|
76
73
|
i0.ɵɵelementStart(0, "div", 0);
|
|
77
74
|
i0.ɵɵtemplate(1, TimezoneDropdownlist_label_1_Template, 2, 0, "label", 1);
|
|
78
75
|
i0.ɵɵelementStart(2, "select", 2);
|
|
@@ -91,13 +88,5 @@ export class TimezoneDropdownlist extends EditComponentBase {
|
|
|
91
88
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TimezoneDropdownlist, [{
|
|
92
89
|
type: Component,
|
|
93
90
|
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" }]
|
|
94
|
-
}], function () { return [{ type: i1.CoreApiService }, { type: i2.AppContextService }]; },
|
|
95
|
-
|
|
96
|
-
}], isTitleVisible: [{
|
|
97
|
-
type: Input
|
|
98
|
-
}], controlName: [{
|
|
99
|
-
type: Input
|
|
100
|
-
}], controlTitle: [{
|
|
101
|
-
type: Input
|
|
102
|
-
}] }); })();
|
|
103
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGltZXpvbmUuZHJvcGRvd25saXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5hdG9seS9zcmMvbGliL3VpL2Zvcm1zL2NvbXBvbmVudHMvZHJvcGRvd25saXN0cy90aW1lem9uZS90aW1lem9uZS5kcm9wZG93bmxpc3QudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmF0b2x5L3NyYy9saWIvdWkvZm9ybXMvY29tcG9uZW50cy9kcm9wZG93bmxpc3RzL3RpbWV6b25lL3RpbWV6b25lLmRyb3Bkb3dubGlzdC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJB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Zvcm1WYWx1ZSh0aGlzLmNvbnRyb2xOYW1lLCB0aW1lWm9uZSk7XHJcbiAgICB9XHJcbiAgfVxyXG59XHJcbiIsIjxkaXYgW2Zvcm1Hcm91cF09J2Zvcm1Hcm91cCcgY2xhc3M9J2Zvcm0tZ3JvdXAnPlxyXG4gIDxsYWJlbCAqbmdJZj0naXNUaXRsZVZpc2libGUnIGNsYXNzPSdjb2wtZm9ybS1sYWJlbCc+VGltZXpvbmU8L2xhYmVsPlxyXG4gIDxzZWxlY3QgW2Zvcm1Db250cm9sTmFtZV09J2NvbnRyb2xOYW1lJyBjbGFzcz0nZm9ybS1jb250cm9sJz5cclxuICAgIDxvcHRpb24gKm5nRm9yPSdsZXQgdGltZXpvbmUgb2YgdGltZXpvbmVMaXN0SXRlbXMnXHJcbiAgICAgICAgICAgIFt2YWx1ZV09J3RpbWV6b25lLmNvZGUnPlxyXG4gICAgICAoe3t0aW1lem9uZS5vZmZzZXR9fSkgIHt7dGltZXpvbmUubmFtZX19XHJcbiAgICA8L29wdGlvbj5cclxuICA8L3NlbGVjdD5cclxuPC9kaXY+XHJcbiJdfQ==
|
|
91
|
+
}], function () { return [{ type: i1.CoreApiService }, { type: i2.AppContextService }]; }, null); })();
|
|
92
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGltZXpvbmUuZHJvcGRvd25saXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5hdG9seS9zcmMvbGliL3VpL2Zvcm1zL2NvbXBvbmVudHMvZHJvcGRvd25saXN0cy90aW1lem9uZS90aW1lem9uZS5kcm9wZG93bmxpc3QudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmF0b2x5L3NyYy9saWIvdWkvZm9ybXMvY29tcG9uZW50cy9kcm9wZG93bmxpc3RzL3RpbW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GUnIGNsYXNzPSdjb2wtZm9ybS1sYWJlbCc+VGltZXpvbmU8L2xhYmVsPlxyXG4gIDxzZWxlY3QgW2Zvcm1Db250cm9sTmFtZV09J2NvbnRyb2xOYW1lJyBjbGFzcz0nZm9ybS1jb250cm9sJz5cclxuICAgIDxvcHRpb24gKm5nRm9yPSdsZXQgdGltZXpvbmUgb2YgdGltZXpvbmVMaXN0SXRlbXMnXHJcbiAgICAgICAgICAgIFt2YWx1ZV09J3RpbWV6b25lLmNvZGUnPlxyXG4gICAgICAoe3t0aW1lem9uZS5vZmZzZXR9fSkgIHt7dGltZXpvbmUubmFtZX19XHJcbiAgICA8L29wdGlvbj5cclxuICA8L3NlbGVjdD5cclxuPC9kaXY+XHJcbiJdfQ==
|
|
@@ -50,15 +50,16 @@ export class UrlSlugComponent extends EditComponentBase {
|
|
|
50
50
|
firstValue = true;
|
|
51
51
|
hrefGo;
|
|
52
52
|
//Inputs
|
|
53
|
-
title = 'Permalink:';
|
|
54
|
-
isTitleVisible = true;
|
|
55
53
|
urlPrefix;
|
|
56
54
|
isGoButtonVisible = true;
|
|
57
55
|
//Validation
|
|
58
|
-
controlName;
|
|
59
56
|
watchedControlName;
|
|
60
57
|
//Outputs
|
|
61
58
|
generating = new EventEmitter();
|
|
59
|
+
constructor() {
|
|
60
|
+
super();
|
|
61
|
+
this.title = 'Permalink';
|
|
62
|
+
}
|
|
62
63
|
ngOnInit() {
|
|
63
64
|
this.startWatching();
|
|
64
65
|
}
|
|
@@ -89,8 +90,8 @@ export class UrlSlugComponent extends EditComponentBase {
|
|
|
89
90
|
let text = this.getFormValue(this.controlName);
|
|
90
91
|
this.generateUrlSlug(text);
|
|
91
92
|
}
|
|
92
|
-
static ɵfac =
|
|
93
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UrlSlugComponent, selectors: [["anatoly-forms-urlslug"]], inputs: {
|
|
93
|
+
static ɵfac = function UrlSlugComponent_Factory(t) { return new (t || UrlSlugComponent)(); };
|
|
94
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UrlSlugComponent, selectors: [["anatoly-forms-urlslug"]], inputs: { urlPrefix: "urlPrefix", isGoButtonVisible: "isGoButtonVisible", watchedControlName: "watchedControlName" }, outputs: { generating: "generating" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 7, vars: 13, consts: [[3, "formGroup", "ngClass"], [1, "d-flex", "align-items-end"], [3, "formGroup", "formSubmitted", "formControlName"], [1, "form-group"], ["class", "col-form-label", 4, "ngIf"], ["type", "text", "placeholder", "Type url slug here", 1, "form-control", 3, "formControlName", "focusout"], ["class", "form-group flex-shrink-1", 4, "ngIf"], [1, "col-form-label"], [1, "urlPrefix"], [1, "form-group", "flex-shrink-1"], ["target", "_blank", 1, "btn", "btn-primary", 3, "href"]], template: function UrlSlugComponent_Template(rf, ctx) { if (rf & 1) {
|
|
94
95
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
|
|
95
96
|
i0.ɵɵelement(2, "anatoly-item-validation-summary", 2);
|
|
96
97
|
i0.ɵɵelementStart(3, "div", 3);
|
|
@@ -116,19 +117,13 @@ export class UrlSlugComponent extends EditComponentBase {
|
|
|
116
117
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UrlSlugComponent, [{
|
|
117
118
|
type: Component,
|
|
118
119
|
args: [{ selector: 'anatoly-forms-urlslug', template: "<div [formGroup]='formGroup' [ngClass]=\"{'has-error': isControlInvalid(controlName)}\"\r\n class=\"permalink form-group {{ classes }}\">\r\n <div class=\"d-flex align-items-end\">\r\n <anatoly-item-validation-summary\r\n [formGroup]='formGroup'\r\n [formSubmitted]='formSubmitted'\r\n [formControlName]='controlName'>\r\n </anatoly-item-validation-summary>\r\n\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'\r\n class='form-control'\r\n placeholder='Type url slug here'\r\n [formControlName]='controlName'\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" }]
|
|
119
|
-
}],
|
|
120
|
-
type: Input
|
|
121
|
-
}], isTitleVisible: [{
|
|
122
|
-
type: Input
|
|
123
|
-
}], urlPrefix: [{
|
|
120
|
+
}], function () { return []; }, { urlPrefix: [{
|
|
124
121
|
type: Input
|
|
125
122
|
}], isGoButtonVisible: [{
|
|
126
123
|
type: Input
|
|
127
|
-
}], controlName: [{
|
|
128
|
-
type: Input
|
|
129
124
|
}], watchedControlName: [{
|
|
130
125
|
type: Input
|
|
131
126
|
}], generating: [{
|
|
132
127
|
type: Output
|
|
133
128
|
}] }); })();
|
|
134
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
129
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXJsc2x1Zy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmF0b2x5L3NyYy9saWIvdWkvZm9ybXMvY29tcG9uZW50cy91cmxzbHVnL3VybHNsdWcuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5hdG9seS9zcmMvbGliL3VpL2Zvcm1zL2NvbXBvbmVudHMvdXJsc2x1Zy91cmxzbHVnLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7Ozs7OztFQWNFO0FBRUYsTUFBTTtBQUNOLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLFlBQVks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Q29udHJvbE5hbWVdPSdjb250cm9sTmFtZSdcclxuICAgICAgICAgICAgIChmb2N1c291dCk9J29uVXJsU2x1Z0NoYW5nZSgpJyAvPlxyXG4gICAgPC9kaXY+XHJcblxyXG4gICAgPGRpdiBjbGFzcz1cImZvcm0tZ3JvdXAgZmxleC1zaHJpbmstMVwiICpuZ0lmPVwiaXNHb0J1dHRvblZpc2libGVcIj5cclxuICAgICAgPGEgaHJlZj1cInt7dXJsUHJlZml4fX17e2hyZWZHb319XCIgdGFyZ2V0PVwiX2JsYW5rXCIgY2xhc3M9XCJidG4gYnRuLXByaW1hcnlcIj5HbzwvYT5cclxuICAgIDwvZGl2PlxyXG4gIDwvZGl2PlxyXG48L2Rpdj5cclxuIl19
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
</file>
|
|
15
15
|
*/
|
|
16
16
|
//Node
|
|
17
|
-
import { Component
|
|
17
|
+
import { Component } from "@angular/core";
|
|
18
18
|
//App
|
|
19
19
|
import { ValidationSummaryComponent } from "./validation-summary.component";
|
|
20
20
|
import * as i0 from "@angular/core";
|
|
@@ -38,9 +38,8 @@ function ItemValidationSummaryComponent_ul_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
38
38
|
i0.ɵɵproperty("ngForOf", ctx_r0.getValidationMessages(ctx_r0.formGroup.controls[ctx_r0.controlName]));
|
|
39
39
|
} }
|
|
40
40
|
export class ItemValidationSummaryComponent extends ValidationSummaryComponent {
|
|
41
|
-
controlName;
|
|
42
41
|
static ɵfac = /*@__PURE__*/ function () { let ɵItemValidationSummaryComponent_BaseFactory; return function ItemValidationSummaryComponent_Factory(t) { return (ɵItemValidationSummaryComponent_BaseFactory || (ɵItemValidationSummaryComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ItemValidationSummaryComponent)))(t || ItemValidationSummaryComponent); }; }();
|
|
43
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ItemValidationSummaryComponent, selectors: [["anatoly-item-validation-summary"]],
|
|
42
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ItemValidationSummaryComponent, selectors: [["anatoly-item-validation-summary"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [["class", "list-unstyled", 4, "ngIf"], [1, "list-unstyled"], [4, "ngFor", "ngForOf"], [1, "help-block"]], template: function ItemValidationSummaryComponent_Template(rf, ctx) { if (rf & 1) {
|
|
44
43
|
i0.ɵɵtemplate(0, ItemValidationSummaryComponent_ul_0_Template, 2, 1, "ul", 0);
|
|
45
44
|
} if (rf & 2) {
|
|
46
45
|
i0.ɵɵproperty("ngIf", ctx.isControlInvalid(ctx.controlName));
|
|
@@ -49,7 +48,5 @@ export class ItemValidationSummaryComponent extends ValidationSummaryComponent {
|
|
|
49
48
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ItemValidationSummaryComponent, [{
|
|
50
49
|
type: Component,
|
|
51
50
|
args: [{ selector: "anatoly-item-validation-summary", template: "<ul class=\"list-unstyled\" *ngIf=\"isControlInvalid(controlName)\">\r\n <li *ngFor=\"let error of getValidationMessages(formGroup.controls[controlName])\">\r\n <span class=\"help-block\">{{ error }}</span>\r\n </li>\r\n</ul>\r\n\r\n" }]
|
|
52
|
-
}], null,
|
|
53
|
-
|
|
54
|
-
}] }); })();
|
|
55
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXRlbS12YWxpZGF0aW9uLXN1bW1hcnkuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5hdG9seS9zcmMvbGliL3VpL3ZhbGlkYXRpb24vaXRlbS12YWxpZGF0aW9uLXN1bW1hcnkuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5hdG9seS9zcmMvbGliL3VpL3ZhbGlkYXRp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@ class ComponentBase {
|
|
|
3229
3229
|
dataFound = false;
|
|
3230
3230
|
//Inputs
|
|
3231
3231
|
classes;
|
|
3232
|
+
title = '';
|
|
3233
|
+
isTitleVisible = true;
|
|
3234
|
+
isRequired = false;
|
|
3232
3235
|
constructor() {
|
|
3233
3236
|
this.isDevMode = isDevMode();
|
|
3234
3237
|
}
|
|
@@ -3260,7 +3263,7 @@ class ComponentBase {
|
|
|
3260
3263
|
this.dataFound = found;
|
|
3261
3264
|
}
|
|
3262
3265
|
static ɵfac = function ComponentBase_Factory(t) { return new (t || ComponentBase)(); };
|
|
3263
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ComponentBase, selectors: [["ng-component"]], inputs: { classes: "classes" }, decls: 0, vars: 0, template: function ComponentBase_Template(rf, ctx) { }, encapsulation: 2 });
|
|
3266
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ComponentBase, selectors: [["ng-component"]], inputs: { classes: "classes", title: "title", isTitleVisible: "isTitleVisible", isRequired: "isRequired" }, decls: 0, vars: 0, template: function ComponentBase_Template(rf, ctx) { }, encapsulation: 2 });
|
|
3264
3267
|
}
|
|
3265
3268
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ComponentBase, [{
|
|
3266
3269
|
type: Component,
|
|
@@ -3269,6 +3272,12 @@ class ComponentBase {
|
|
|
3269
3272
|
}]
|
|
3270
3273
|
}], function () { return []; }, { classes: [{
|
|
3271
3274
|
type: Input
|
|
3275
|
+
}], title: [{
|
|
3276
|
+
type: Input
|
|
3277
|
+
}], isTitleVisible: [{
|
|
3278
|
+
type: Input
|
|
3279
|
+
}], isRequired: [{
|
|
3280
|
+
type: Input
|
|
3272
3281
|
}] }); })();
|
|
3273
3282
|
|
|
3274
3283
|
/*
|
|
@@ -3293,6 +3302,7 @@ class EditComponentBase extends ComponentBase {
|
|
|
3293
3302
|
isEditMode = false;
|
|
3294
3303
|
formGroup;
|
|
3295
3304
|
formSubmitted = false;
|
|
3305
|
+
controlName;
|
|
3296
3306
|
constructor() {
|
|
3297
3307
|
super();
|
|
3298
3308
|
this.isEditMode = Utils.idExistsInQS();
|
|
@@ -3389,7 +3399,7 @@ class EditComponentBase extends ComponentBase {
|
|
|
3389
3399
|
return this.formGroup.controls;
|
|
3390
3400
|
}
|
|
3391
3401
|
static ɵfac = function EditComponentBase_Factory(t) { return new (t || EditComponentBase)(); };
|
|
3392
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EditComponentBase, selectors: [["ng-component"]], inputs: { formGroup: "formGroup", formSubmitted: "formSubmitted" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 0, vars: 0, template: function EditComponentBase_Template(rf, ctx) { }, encapsulation: 2 });
|
|
3402
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EditComponentBase, selectors: [["ng-component"]], inputs: { formGroup: "formGroup", formSubmitted: "formSubmitted", controlName: "controlName" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 0, vars: 0, template: function EditComponentBase_Template(rf, ctx) { }, encapsulation: 2 });
|
|
3393
3403
|
}
|
|
3394
3404
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EditComponentBase, [{
|
|
3395
3405
|
type: Component,
|
|
@@ -3400,6 +3410,8 @@ class EditComponentBase extends ComponentBase {
|
|
|
3400
3410
|
type: Input
|
|
3401
3411
|
}], formSubmitted: [{
|
|
3402
3412
|
type: Input
|
|
3413
|
+
}], controlName: [{
|
|
3414
|
+
type: Input
|
|
3403
3415
|
}] }); })();
|
|
3404
3416
|
|
|
3405
3417
|
/*
|
|
@@ -4558,10 +4570,9 @@ class Copy2ClipboardComponent {
|
|
|
4558
4570
|
//Node
|
|
4559
4571
|
const _c0$9 = [[["mex-card-header"]], [["mex-card-body"]], "*", [["mex-card-footer"]]];
|
|
4560
4572
|
const _c1 = ["mex-card-header", "mex-card-body", "*", "mex-card-footer"];
|
|
4561
|
-
class CardComponent {
|
|
4562
|
-
|
|
4563
|
-
static
|
|
4564
|
-
static ɵ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) {
|
|
4573
|
+
class CardComponent extends ComponentBase {
|
|
4574
|
+
static ɵfac = /*@__PURE__*/ function () { let ɵCardComponent_BaseFactory; return function CardComponent_Factory(t) { return (ɵCardComponent_BaseFactory || (ɵCardComponent_BaseFactory = i0.ɵɵgetInheritedFactory(CardComponent)))(t || CardComponent); }; }();
|
|
4575
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CardComponent, selectors: [["anatoly-card"]], features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c1, decls: 5, vars: 3, template: function CardComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4565
4576
|
i0.ɵɵprojectionDef(_c0$9);
|
|
4566
4577
|
i0.ɵɵelementStart(0, "div");
|
|
4567
4578
|
i0.ɵɵprojection(1);
|
|
@@ -4576,9 +4587,7 @@ class CardComponent {
|
|
|
4576
4587
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CardComponent, [{
|
|
4577
4588
|
type: Component,
|
|
4578
4589
|
args: [{ selector: 'anatoly-card', template: "<div class='card {{ classes }}'>\r\n <ng-content select='mex-card-header'></ng-content>\r\n <ng-content select='mex-card-body'></ng-content>\r\n <ng-content></ng-content>\r\n <ng-content select='mex-card-footer'></ng-content>\r\n</div>\r\n" }]
|
|
4579
|
-
}], null,
|
|
4580
|
-
type: Input
|
|
4581
|
-
}] }); })();
|
|
4590
|
+
}], null, null); })();
|
|
4582
4591
|
|
|
4583
4592
|
/*
|
|
4584
4593
|
<file>
|
|
@@ -4606,11 +4615,9 @@ function CardHeaderComponent_h3_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
4606
4615
|
i0.ɵɵtextInterpolate(ctx_r0.title);
|
|
4607
4616
|
} }
|
|
4608
4617
|
const _c0$8 = ["*"];
|
|
4609
|
-
class CardHeaderComponent {
|
|
4610
|
-
|
|
4611
|
-
title
|
|
4612
|
-
static ɵfac = function CardHeaderComponent_Factory(t) { return new (t || CardHeaderComponent)(); };
|
|
4613
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CardHeaderComponent, selectors: [["anatoly-card-header"]], inputs: { classes: "classes", title: "title" }, ngContentSelectors: _c0$8, decls: 3, vars: 4, consts: [["class", "card-title", 4, "ngIf"], [1, "card-title"]], template: function CardHeaderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4618
|
+
class CardHeaderComponent extends ComponentBase {
|
|
4619
|
+
static ɵfac = /*@__PURE__*/ function () { let ɵCardHeaderComponent_BaseFactory; return function CardHeaderComponent_Factory(t) { return (ɵCardHeaderComponent_BaseFactory || (ɵCardHeaderComponent_BaseFactory = i0.ɵɵgetInheritedFactory(CardHeaderComponent)))(t || CardHeaderComponent); }; }();
|
|
4620
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CardHeaderComponent, selectors: [["anatoly-card-header"]], features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$8, decls: 3, vars: 4, consts: [["class", "card-title", 4, "ngIf"], [1, "card-title"]], template: function CardHeaderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4614
4621
|
i0.ɵɵprojectionDef();
|
|
4615
4622
|
i0.ɵɵelementStart(0, "div");
|
|
4616
4623
|
i0.ɵɵtemplate(1, CardHeaderComponent_h3_1_Template, 2, 1, "h3", 0);
|
|
@@ -4625,11 +4632,7 @@ class CardHeaderComponent {
|
|
|
4625
4632
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CardHeaderComponent, [{
|
|
4626
4633
|
type: Component,
|
|
4627
4634
|
args: [{ selector: 'anatoly-card-header', template: "<div class='card-header {{ classes }}'>\r\n <h3 *ngIf='title' class='card-title'>{{ title }}</h3>\r\n <ng-content></ng-content>\r\n</div>\r\n" }]
|
|
4628
|
-
}], null,
|
|
4629
|
-
type: Input
|
|
4630
|
-
}], title: [{
|
|
4631
|
-
type: Input
|
|
4632
|
-
}] }); })();
|
|
4635
|
+
}], null, null); })();
|
|
4633
4636
|
|
|
4634
4637
|
/*
|
|
4635
4638
|
<file>
|
|
@@ -4648,10 +4651,9 @@ class CardHeaderComponent {
|
|
|
4648
4651
|
*/
|
|
4649
4652
|
//Node
|
|
4650
4653
|
const _c0$7 = ["*"];
|
|
4651
|
-
class CardBodyComponent {
|
|
4652
|
-
|
|
4653
|
-
static
|
|
4654
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CardBodyComponent, selectors: [["anatoly-card-body"]], inputs: { classes: "classes" }, ngContentSelectors: _c0$7, decls: 2, vars: 3, template: function CardBodyComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4654
|
+
class CardBodyComponent extends ComponentBase {
|
|
4655
|
+
static ɵfac = /*@__PURE__*/ function () { let ɵCardBodyComponent_BaseFactory; return function CardBodyComponent_Factory(t) { return (ɵCardBodyComponent_BaseFactory || (ɵCardBodyComponent_BaseFactory = i0.ɵɵgetInheritedFactory(CardBodyComponent)))(t || CardBodyComponent); }; }();
|
|
4656
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CardBodyComponent, selectors: [["anatoly-card-body"]], features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$7, decls: 2, vars: 3, template: function CardBodyComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4655
4657
|
i0.ɵɵprojectionDef();
|
|
4656
4658
|
i0.ɵɵelementStart(0, "div");
|
|
4657
4659
|
i0.ɵɵprojection(1);
|
|
@@ -4663,9 +4665,7 @@ class CardBodyComponent {
|
|
|
4663
4665
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CardBodyComponent, [{
|
|
4664
4666
|
type: Component,
|
|
4665
4667
|
args: [{ selector: 'anatoly-card-body', template: "<div class='card-body {{ classes }}'>\r\n <ng-content></ng-content>\r\n</div>\r\n" }]
|
|
4666
|
-
}], null,
|
|
4667
|
-
type: Input
|
|
4668
|
-
}] }); })();
|
|
4668
|
+
}], null, null); })();
|
|
4669
4669
|
|
|
4670
4670
|
/*
|
|
4671
4671
|
<file>
|
|
@@ -4684,10 +4684,9 @@ class CardBodyComponent {
|
|
|
4684
4684
|
*/
|
|
4685
4685
|
//Node
|
|
4686
4686
|
const _c0$6 = ["*"];
|
|
4687
|
-
class CardFooterComponent {
|
|
4688
|
-
|
|
4689
|
-
static
|
|
4690
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CardFooterComponent, selectors: [["anatoly-card-footer"]], inputs: { classes: "classes" }, ngContentSelectors: _c0$6, decls: 2, vars: 3, template: function CardFooterComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4687
|
+
class CardFooterComponent extends ComponentBase {
|
|
4688
|
+
static ɵfac = /*@__PURE__*/ function () { let ɵCardFooterComponent_BaseFactory; return function CardFooterComponent_Factory(t) { return (ɵCardFooterComponent_BaseFactory || (ɵCardFooterComponent_BaseFactory = i0.ɵɵgetInheritedFactory(CardFooterComponent)))(t || CardFooterComponent); }; }();
|
|
4689
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CardFooterComponent, selectors: [["anatoly-card-footer"]], features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$6, decls: 2, vars: 3, template: function CardFooterComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4691
4690
|
i0.ɵɵprojectionDef();
|
|
4692
4691
|
i0.ɵɵelementStart(0, "div");
|
|
4693
4692
|
i0.ɵɵprojection(1);
|
|
@@ -4699,9 +4698,7 @@ class CardFooterComponent {
|
|
|
4699
4698
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CardFooterComponent, [{
|
|
4700
4699
|
type: Component,
|
|
4701
4700
|
args: [{ selector: 'anatoly-card-footer', template: "<div class='card-footer {{ classes }}'>\r\n <ng-content></ng-content>\r\n</div>\r\n" }]
|
|
4702
|
-
}], null,
|
|
4703
|
-
type: Input
|
|
4704
|
-
}] }); })();
|
|
4701
|
+
}], null, null); })();
|
|
4705
4702
|
|
|
4706
4703
|
/*
|
|
4707
4704
|
<file>
|
|
@@ -5070,9 +5067,8 @@ function ItemValidationSummaryComponent_ul_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
5070
5067
|
i0.ɵɵproperty("ngForOf", ctx_r0.getValidationMessages(ctx_r0.formGroup.controls[ctx_r0.controlName]));
|
|
5071
5068
|
} }
|
|
5072
5069
|
class ItemValidationSummaryComponent extends ValidationSummaryComponent {
|
|
5073
|
-
controlName;
|
|
5074
5070
|
static ɵfac = /*@__PURE__*/ function () { let ɵItemValidationSummaryComponent_BaseFactory; return function ItemValidationSummaryComponent_Factory(t) { return (ɵItemValidationSummaryComponent_BaseFactory || (ɵItemValidationSummaryComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ItemValidationSummaryComponent)))(t || ItemValidationSummaryComponent); }; }();
|
|
5075
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ItemValidationSummaryComponent, selectors: [["anatoly-item-validation-summary"]],
|
|
5071
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ItemValidationSummaryComponent, selectors: [["anatoly-item-validation-summary"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [["class", "list-unstyled", 4, "ngIf"], [1, "list-unstyled"], [4, "ngFor", "ngForOf"], [1, "help-block"]], template: function ItemValidationSummaryComponent_Template(rf, ctx) { if (rf & 1) {
|
|
5076
5072
|
i0.ɵɵtemplate(0, ItemValidationSummaryComponent_ul_0_Template, 2, 1, "ul", 0);
|
|
5077
5073
|
} if (rf & 2) {
|
|
5078
5074
|
i0.ɵɵproperty("ngIf", ctx.isControlInvalid(ctx.controlName));
|
|
@@ -5081,9 +5077,7 @@ class ItemValidationSummaryComponent extends ValidationSummaryComponent {
|
|
|
5081
5077
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ItemValidationSummaryComponent, [{
|
|
5082
5078
|
type: Component,
|
|
5083
5079
|
args: [{ selector: "anatoly-item-validation-summary", template: "<ul class=\"list-unstyled\" *ngIf=\"isControlInvalid(controlName)\">\r\n <li *ngFor=\"let error of getValidationMessages(formGroup.controls[controlName])\">\r\n <span class=\"help-block\">{{ error }}</span>\r\n </li>\r\n</ul>\r\n\r\n" }]
|
|
5084
|
-
}], null,
|
|
5085
|
-
type: Input
|
|
5086
|
-
}] }); })();
|
|
5080
|
+
}], null, null); })();
|
|
5087
5081
|
|
|
5088
5082
|
/*
|
|
5089
5083
|
<file>
|
|
@@ -5726,9 +5720,6 @@ class AddressComponent extends EditComponentBase {
|
|
|
5726
5720
|
currentCountry = 'US';
|
|
5727
5721
|
currentUSState = 'NY';
|
|
5728
5722
|
//Inputs
|
|
5729
|
-
title = 'Address';
|
|
5730
|
-
isTitleVisible = true;
|
|
5731
|
-
isRequired;
|
|
5732
5723
|
get address() {
|
|
5733
5724
|
return this._address;
|
|
5734
5725
|
}
|
|
@@ -5744,6 +5735,7 @@ class AddressComponent extends EditComponentBase {
|
|
|
5744
5735
|
super();
|
|
5745
5736
|
this.fb = fb;
|
|
5746
5737
|
this.api = api;
|
|
5738
|
+
this.title = 'Address';
|
|
5747
5739
|
}
|
|
5748
5740
|
ngOnInit() {
|
|
5749
5741
|
this.api.getCountriesJsonFile(data => {
|
|
@@ -5810,7 +5802,7 @@ class AddressComponent extends EditComponentBase {
|
|
|
5810
5802
|
this.change.emit(usState);
|
|
5811
5803
|
}
|
|
5812
5804
|
static ɵfac = function AddressComponent_Factory(t) { return new (t || AddressComponent)(i0.ɵɵdirectiveInject(i2.FormBuilder), i0.ɵɵdirectiveInject(CoreApiService)); };
|
|
5813
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AddressComponent, selectors: [["anatoly-forms-address"]], inputs: {
|
|
5805
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AddressComponent, selectors: [["anatoly-forms-address"]], inputs: { 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) {
|
|
5814
5806
|
i0.ɵɵelementStart(0, "anatoly-card", 0);
|
|
5815
5807
|
i0.ɵɵtemplate(1, AddressComponent_anatoly_card_header_1_Template, 1, 1, "anatoly-card-header", 1);
|
|
5816
5808
|
i0.ɵɵelementStart(2, "anatoly-card-body")(3, "div", 2)(4, "div", 3)(5, "label", 4);
|
|
@@ -5875,13 +5867,7 @@ class AddressComponent extends EditComponentBase {
|
|
|
5875
5867
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AddressComponent, [{
|
|
5876
5868
|
type: Component,
|
|
5877
5869
|
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" }]
|
|
5878
|
-
}], function () { return [{ type: i2.FormBuilder }, { type: CoreApiService }]; }, {
|
|
5879
|
-
type: Input
|
|
5880
|
-
}], isTitleVisible: [{
|
|
5881
|
-
type: Input
|
|
5882
|
-
}], isRequired: [{
|
|
5883
|
-
type: Input
|
|
5884
|
-
}], address: [{
|
|
5870
|
+
}], function () { return [{ type: i2.FormBuilder }, { type: CoreApiService }]; }, { address: [{
|
|
5885
5871
|
type: Input
|
|
5886
5872
|
}], change: [{
|
|
5887
5873
|
type: Output
|
|
@@ -5916,8 +5902,6 @@ class CompanyComponent extends EditComponentBase {
|
|
|
5916
5902
|
_company;
|
|
5917
5903
|
formGroupGenerated = false;
|
|
5918
5904
|
//Inputs
|
|
5919
|
-
title = 'Company / Organization';
|
|
5920
|
-
isTitleVisible = true;
|
|
5921
5905
|
get company() {
|
|
5922
5906
|
return this._company;
|
|
5923
5907
|
}
|
|
@@ -5930,6 +5914,7 @@ class CompanyComponent extends EditComponentBase {
|
|
|
5930
5914
|
constructor(fb) {
|
|
5931
5915
|
super();
|
|
5932
5916
|
this.fb = fb;
|
|
5917
|
+
this.title = 'Company / Organization';
|
|
5933
5918
|
}
|
|
5934
5919
|
ngOnInit() {
|
|
5935
5920
|
this.createFormGroup();
|
|
@@ -5964,7 +5949,7 @@ class CompanyComponent extends EditComponentBase {
|
|
|
5964
5949
|
return JSON.stringify(data);
|
|
5965
5950
|
}
|
|
5966
5951
|
static ɵfac = function CompanyComponent_Factory(t) { return new (t || CompanyComponent)(i0.ɵɵdirectiveInject(i2.FormBuilder)); };
|
|
5967
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CompanyComponent, selectors: [["anatoly-forms-company"]], inputs: {
|
|
5952
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CompanyComponent, selectors: [["anatoly-forms-company"]], inputs: { 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) {
|
|
5968
5953
|
i0.ɵɵelementStart(0, "anatoly-card", 0);
|
|
5969
5954
|
i0.ɵɵtemplate(1, CompanyComponent_anatoly_card_header_1_Template, 1, 1, "anatoly-card-header", 1);
|
|
5970
5955
|
i0.ɵɵelementStart(2, "anatoly-card-body")(3, "div", 2)(4, "div", 3)(5, "label", 4);
|
|
@@ -6013,11 +5998,7 @@ class CompanyComponent extends EditComponentBase {
|
|
|
6013
5998
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CompanyComponent, [{
|
|
6014
5999
|
type: Component,
|
|
6015
6000
|
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" }]
|
|
6016
|
-
}], function () { return [{ type: i2.FormBuilder }]; }, {
|
|
6017
|
-
type: Input
|
|
6018
|
-
}], isTitleVisible: [{
|
|
6019
|
-
type: Input
|
|
6020
|
-
}], company: [{
|
|
6001
|
+
}], function () { return [{ type: i2.FormBuilder }]; }, { company: [{
|
|
6021
6002
|
type: Input
|
|
6022
6003
|
}] }); })();
|
|
6023
6004
|
|
|
@@ -6064,15 +6045,16 @@ class UrlSlugComponent extends EditComponentBase {
|
|
|
6064
6045
|
firstValue = true;
|
|
6065
6046
|
hrefGo;
|
|
6066
6047
|
//Inputs
|
|
6067
|
-
title = 'Permalink:';
|
|
6068
|
-
isTitleVisible = true;
|
|
6069
6048
|
urlPrefix;
|
|
6070
6049
|
isGoButtonVisible = true;
|
|
6071
6050
|
//Validation
|
|
6072
|
-
controlName;
|
|
6073
6051
|
watchedControlName;
|
|
6074
6052
|
//Outputs
|
|
6075
6053
|
generating = new EventEmitter();
|
|
6054
|
+
constructor() {
|
|
6055
|
+
super();
|
|
6056
|
+
this.title = 'Permalink';
|
|
6057
|
+
}
|
|
6076
6058
|
ngOnInit() {
|
|
6077
6059
|
this.startWatching();
|
|
6078
6060
|
}
|
|
@@ -6103,8 +6085,8 @@ class UrlSlugComponent extends EditComponentBase {
|
|
|
6103
6085
|
let text = this.getFormValue(this.controlName);
|
|
6104
6086
|
this.generateUrlSlug(text);
|
|
6105
6087
|
}
|
|
6106
|
-
static ɵfac =
|
|
6107
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UrlSlugComponent, selectors: [["anatoly-forms-urlslug"]], inputs: {
|
|
6088
|
+
static ɵfac = function UrlSlugComponent_Factory(t) { return new (t || UrlSlugComponent)(); };
|
|
6089
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UrlSlugComponent, selectors: [["anatoly-forms-urlslug"]], inputs: { urlPrefix: "urlPrefix", isGoButtonVisible: "isGoButtonVisible", watchedControlName: "watchedControlName" }, outputs: { generating: "generating" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 7, vars: 13, consts: [[3, "formGroup", "ngClass"], [1, "d-flex", "align-items-end"], [3, "formGroup", "formSubmitted", "formControlName"], [1, "form-group"], ["class", "col-form-label", 4, "ngIf"], ["type", "text", "placeholder", "Type url slug here", 1, "form-control", 3, "formControlName", "focusout"], ["class", "form-group flex-shrink-1", 4, "ngIf"], [1, "col-form-label"], [1, "urlPrefix"], [1, "form-group", "flex-shrink-1"], ["target", "_blank", 1, "btn", "btn-primary", 3, "href"]], template: function UrlSlugComponent_Template(rf, ctx) { if (rf & 1) {
|
|
6108
6090
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
|
|
6109
6091
|
i0.ɵɵelement(2, "anatoly-item-validation-summary", 2);
|
|
6110
6092
|
i0.ɵɵelementStart(3, "div", 3);
|
|
@@ -6130,16 +6112,10 @@ class UrlSlugComponent extends EditComponentBase {
|
|
|
6130
6112
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UrlSlugComponent, [{
|
|
6131
6113
|
type: Component,
|
|
6132
6114
|
args: [{ selector: 'anatoly-forms-urlslug', template: "<div [formGroup]='formGroup' [ngClass]=\"{'has-error': isControlInvalid(controlName)}\"\r\n class=\"permalink form-group {{ classes }}\">\r\n <div class=\"d-flex align-items-end\">\r\n <anatoly-item-validation-summary\r\n [formGroup]='formGroup'\r\n [formSubmitted]='formSubmitted'\r\n [formControlName]='controlName'>\r\n </anatoly-item-validation-summary>\r\n\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'\r\n class='form-control'\r\n placeholder='Type url slug here'\r\n [formControlName]='controlName'\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" }]
|
|
6133
|
-
}],
|
|
6134
|
-
type: Input
|
|
6135
|
-
}], isTitleVisible: [{
|
|
6136
|
-
type: Input
|
|
6137
|
-
}], urlPrefix: [{
|
|
6115
|
+
}], function () { return []; }, { urlPrefix: [{
|
|
6138
6116
|
type: Input
|
|
6139
6117
|
}], isGoButtonVisible: [{
|
|
6140
6118
|
type: Input
|
|
6141
|
-
}], controlName: [{
|
|
6142
|
-
type: Input
|
|
6143
6119
|
}], watchedControlName: [{
|
|
6144
6120
|
type: Input
|
|
6145
6121
|
}], generating: [{
|
|
@@ -6181,15 +6157,12 @@ class TimezoneDropdownlist extends EditComponentBase {
|
|
|
6181
6157
|
api;
|
|
6182
6158
|
appContext;
|
|
6183
6159
|
timezoneListItems;
|
|
6184
|
-
//Inputs
|
|
6185
|
-
title = 'Timezone';
|
|
6186
|
-
isTitleVisible = true;
|
|
6187
|
-
controlName = 'timezone';
|
|
6188
|
-
controlTitle;
|
|
6189
6160
|
constructor(api, appContext) {
|
|
6190
6161
|
super();
|
|
6191
6162
|
this.api = api;
|
|
6192
6163
|
this.appContext = appContext;
|
|
6164
|
+
this.title = 'Timezone';
|
|
6165
|
+
this.controlName = 'timezone';
|
|
6193
6166
|
}
|
|
6194
6167
|
ngOnInit() {
|
|
6195
6168
|
this.setValues();
|
|
@@ -6211,7 +6184,7 @@ class TimezoneDropdownlist extends EditComponentBase {
|
|
|
6211
6184
|
}
|
|
6212
6185
|
}
|
|
6213
6186
|
static ɵfac = function TimezoneDropdownlist_Factory(t) { return new (t || TimezoneDropdownlist)(i0.ɵɵdirectiveInject(CoreApiService), i0.ɵɵdirectiveInject(AppContextService)); };
|
|
6214
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TimezoneDropdownlist, selectors: [["anatoly-forms-timezone-dropdownlist"]],
|
|
6187
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TimezoneDropdownlist, selectors: [["anatoly-forms-timezone-dropdownlist"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 4, vars: 4, consts: [[1, "form-group", 3, "formGroup"], ["class", "col-form-label", 4, "ngIf"], [1, "form-control", 3, "formControlName"], [3, "value", 4, "ngFor", "ngForOf"], [1, "col-form-label"], [3, "value"]], template: function TimezoneDropdownlist_Template(rf, ctx) { if (rf & 1) {
|
|
6215
6188
|
i0.ɵɵelementStart(0, "div", 0);
|
|
6216
6189
|
i0.ɵɵtemplate(1, TimezoneDropdownlist_label_1_Template, 2, 0, "label", 1);
|
|
6217
6190
|
i0.ɵɵelementStart(2, "select", 2);
|
|
@@ -6230,15 +6203,7 @@ class TimezoneDropdownlist extends EditComponentBase {
|
|
|
6230
6203
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TimezoneDropdownlist, [{
|
|
6231
6204
|
type: Component,
|
|
6232
6205
|
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" }]
|
|
6233
|
-
}], function () { return [{ type: CoreApiService }, { type: AppContextService }]; },
|
|
6234
|
-
type: Input
|
|
6235
|
-
}], isTitleVisible: [{
|
|
6236
|
-
type: Input
|
|
6237
|
-
}], controlName: [{
|
|
6238
|
-
type: Input
|
|
6239
|
-
}], controlTitle: [{
|
|
6240
|
-
type: Input
|
|
6241
|
-
}] }); })();
|
|
6206
|
+
}], function () { return [{ type: CoreApiService }, { type: AppContextService }]; }, null); })();
|
|
6242
6207
|
|
|
6243
6208
|
/*
|
|
6244
6209
|
<file>
|